function getTime1(dayNum) {
    const day7 = new Date().getTime() + dayNum*86400000;
    const year = new Date(day7).getFullYear();
    const month = new Date(day7).getMonth() + 1;
    const day = new Date(day7).getDate();
    const hours = new Date(day7).getHours();
    const minutes = new Date(day7).getMinutes();
    const seconds = new Date(day7).getSeconds();
    const timeStr =
        year +
        "." +
        month +
        "." +
        day +
        " " +
        hours +
        ":" +
        minutes +
        ":" +
        seconds;
    console.log(timeStr);
}

getTime1(7)
